<template>
  <div class="dashboard-container">
    <div class="tool-item">
      <h3>表单生成</h3>
      <p class="desc">
        快速生成表单，支持表单搭建、自定义配置、一键拷贝代码。
      </p>
      <router-link to="/form">
        <div class="btn">开始使用</div>
      </router-link>
    </div>
     <div class="tool-item">
      <h3>表格生成</h3>
      <p class="desc">
        快速生成表格，支持表格搭建、自定义配置、一键拷贝代码。
      </p>
      <router-link to="/table">
        <div class="btn">开始使用</div>
      </router-link>
    </div>
    <div class="tool-item">
      <h3>字段替换</h3>
      <p class="desc">
        快速将表单代码中的默认字段替换为后端人员提供的接口字段。
      </p>
      <router-link to="/diff">
        <div class="btn">开始使用</div>
      </router-link>
    </div>
  </div>
</template>

<script setup></script>

<style lang="less" scoped>
a {
  text-decoration: none !important;
}
.flex-between {
  display: flex;
  justify-content: space-between;
}
.dashboard-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background: url("@/assets/images/dashboard-bg.png") no-repeat center;
  background-size: cover;
}

.tool-item {
  width: 450px;
  height: 360px;
  box-sizing: border-box;
  border-radius: 36px;
  padding: 0 50px;
  background: #fff url("@/assets/images/dashboard-form-icon.png") no-repeat
    bottom right;
  &:nth-child(2) {
    background: #fff url("@/assets/images/dashboard-diff-icon.png") no-repeat
      bottom right;
  }
  h3 {
    font-size: 30px;
    color: #2e2e30;
    font-weight: 700;
    margin: 0;
    padding: 50px 0 18px;
  }
  .desc {
    font-size: 18px;
    color: #7a7c88;
    line-height: 30px;
  }
  .btn {
    margin-top: 100px;
    width: 160px;
    border-radius: 21px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    line-height: 42px;
    color: #ffffff;
    background-image: linear-gradient(90deg, #31afff 0%, #1677ff 100%);
    cursor: pointer;
  }
}
</style>
